package client.controlpanel;

import gui.controlpanel.ConfigurationDialog;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;

public class SettingsButton implements ActionListener {
	JButton startButton;
	JButton stopButton;
	
	public SettingsButton(JButton start, JButton stop) {
		startButton = start;
		stopButton = stop;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		ConfigurationDialog dialog = new ConfigurationDialog(startButton, stopButton);
		dialog.pack();
		dialog.setVisible(true);
	}
	
}
